package com.yequan.thread.threadpool.plan;

/**
 * @author yequan
 * @date 2019/11/29
 */
public class Test {

    public static void main(String[] args) {
        ThreadPoolManager threadPoolManager = ThreadPoolManager.getInstance();
        threadPoolManager.addExecuteTask(new Runnable() {
            @Override
            public void run() {
                System.out.println("sssssssssssss");
                try {
                    Thread.sleep(3000L);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        int activeCount = threadPoolManager.getActiveCount();
        int corePoolCount = threadPoolManager.getCorePoolCount();
        System.out.println("activeCount:  " + activeCount + "   corePoolCount:  " + corePoolCount);
    }

}
